package com.example.mobile2021606128wje0330;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widget.Guideline;

public class MainActivity extends AppCompatActivity {

    private Button btnMainTip1;
    private Button btnMainTip2;
    private Button btnMainTip3;
    private Button btnMainTip4;
    private Button btnMainTip5;
    private Button btnMainTip6;
    private Button btnMainTip7;
    private Button btnMainTip8;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate( savedInstanceState );
        setContentView( R.layout.activity_main );
        initView();
        btnMainTip1.setOnClickListener( new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //界面跳转
                Intent intent = new Intent(MainActivity.this,MainActivity2.class);
                startActivity( intent );
            }
        } );

    }

    private void initView() {
        btnMainTip1 = (Button) findViewById( R.id.btnMainTip1 );
        btnMainTip2 = (Button) findViewById( R.id.btnMainTip2 );
        btnMainTip3 = (Button) findViewById( R.id.btnMainTip3 );
        btnMainTip4 = (Button) findViewById( R.id.btnMainTip4 );
        btnMainTip5 = (Button) findViewById( R.id.btnMainTip5 );
        btnMainTip6 = (Button) findViewById( R.id.btnMainTip6 );
        btnMainTip7 = (Button) findViewById( R.id.btnMainTip7 );
        btnMainTip8 = (Button) findViewById( R.id.btnMainTip8 );

    }
}